package com.cloudy.ec2.request;

public class CreateVolume extends EC2Request {
	public CreateVolume(int size, String availabilityZone) {
		if(size>0 && size<1025 )
			throw new IllegalArgumentException("Size must be between [1, 1024]");
		putAttribute("Size", String.valueOf(size));
		putAttribute("AvailabilityZone", availabilityZone);
	}
	public CreateVolume(String snapshotId, String availabilityZone) {
		putAttribute("SnapshotId", snapshotId);
		putAttribute("AvailabilityZone", availabilityZone);
	}

}
